# -*- coding: utf-8 -*-
"""
通知系统 - Django Admin配置
"""

from django.contrib import admin
from .models import Notification


@admin.register(Notification)
class NotificationAdmin(admin.ModelAdmin):
    """通知管理"""
    list_display = ('user', 'type', 'title', 'is_read', 'created_at')
    list_filter = ('type', 'is_read', 'created_at')
    search_fields = ('title', 'content', 'user__username')
    raw_id_fields = ('user', 'related_activity', 'related_user')
